#include<iostream>
#include<Windows.h>
using namespace std;
int main()
{
	int cur = 0;
	char bar[101] = { 0 };
	const char* lable = "|\\-/";
	while (cur <= 100)
	{
		printf("[%-100s][%d%%][%c]\r", bar, cur, lable[cur % 4]);
		fflush(stdout);
		bar[cur++] = '#';
		Sleep(50);
	}
	return 0;
}